package cn.qiao;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.locks.ReentrantLock;

/**
 * desc:
 *
 * @author qiao
 * @date 2022年11月09日 22:36
 */
public class ThreadDemo {

    public static void main(String[] args) {
//        System.out.println(Thread.currentThread().getName());
//        word word = new word();
//        word.start();
//        System.out.println("..");

//        new Thread(()->{
//            System.out.println("111");
//        }).start();
//        ReentrantLock reentrantLock = new ReentrantLock();
//        reentrantLock.lock();

        double a = 1.0D -0.9D;
        double b = 0.1;
        System.out.println(a==b);
        int foo = -10;
        int res = foo%3;
        System.out.println(res);

        BigDecimal c = new BigDecimal("1.0");
        BigDecimal d = new BigDecimal("1.00");

        System.out.println(c.equals(b));


    }

}


class word extends Thread{

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(getName()+"这个一个测试的线程");
        }
    }
}